<!--
 * @Author: 刘鑫
 * @Date: 2020-11-11 15:27:20
 * @LastEditors: 刘鑫
 * @LastEditTime: 2020-11-11 15:28:02
 * @Description: 
-->
<template>
  <van-popup
    :close-on-click-overlay="false"
    v-model="show"
    style="background-color: transparent"
  >
    <div class="loadingWrap">
      <van-loading v-if="show" type="spinner" />
    </div>
  </van-popup>
</template>

<script>
export default {
  name: "loading",
  data() {
    return {
      show: false,
    };
  },
};
</script>

<style lang='scss' scoped>
.loadingWrap {
  .van-popup {
    background-color: rgba(0, 0, 0, 0.7);
  }
}
</style>
